# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-pypytools
pkgver=0.6.2
pkgrel=2
pkgdesc="collection of useful tools to use PyPy-specific features, with CPython fallbacks"
url="https://github.com/antocuni/pypytools"
arch="noarch"
license="MIT"
makedepends="py3-setuptools"
checkdepends="py3-attrs py3-freezegun py3-numpy py3-pytest"
source="https://files.pythonhosted.org/packages/source/p/pypytools/pypytools-$pkgver.tar.gz
	python3.11.patch
	"
builddir="$srcdir/pypytools-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
5e95ea6c30403d3b46ab43bfa316ba9b3dda85149aa0aaadc3056c74683c2e60cff357d86989b43ccb8fe73ee2a4bace9e8bdb7f164ea497211b4843c32fc05f  pypytools-0.6.2.tar.gz
2ed6fbe642258a9b0bd6594f04a5fa1a1cb2f22e12c8c2fedad441cf5641f4f12f35e578ba7b615a0b70b4383d1d811d71fda9dedfd7ad108155aa1df1bef38c  python3.11.patch
"
